function Config(){

    this.path = function(domain,params){//params : ['?key=value','&key=value']
        let current = window.location.href;
        let server = 'http://mafutech.com';
        if(current.indexOf('vcoola.cn') > 0 || current.indexOf('localhost') > 0){
            server = 'http://mafu.vcoola.cn'
        }
        return server + '/duolu/'+ domain + getParams(params);
    };

    function getParams(params){
        var _params = '';
        if(params){
            params.map(function(p){
                _params += p;
            });
        }
        return _params;
    }
};

var inst = new Config();
module.exports = inst;